import{d as g,a as s,o as n,b as r,w as o,e as t,m as p,f as i,E as x,A as y,a5 as R,q as d,K as k}from"./index-c80Lh_is.js";import{C as w}from"./CodeBlock-BSWXsm4g.js";const $=g({__name:"DataPlaneOutboundSummaryClustersView",setup(E){return(V,v)=>{const m=s("RouteTitle"),u=s("KButton"),_=s("DataSource"),h=s("AppView"),f=s("RouteView");return n(),r(f,{params:{codeSearch:"",codeFilter:!1,codeRegExp:!1,mesh:"",dataPlane:"",service:""},name:"data-plane-outbound-summary-clusters-view"},{default:o(({route:e})=>[t(h,null,{title:o(()=>[p("h3",null,[t(m,{title:"Clusters"})])]),default:o(()=>[i(),p("div",null,[t(_,{src:`/meshes/${e.params.mesh}/dataplanes/${e.params.dataPlane}/data-path/clusters`},{default:o(({data:c,error:l,refresh:C})=>[l?(n(),r(x,{key:0,error:l},null,8,["error"])):c===void 0?(n(),r(y,{key:1})):(n(),r(w,{key:2,language:"json",code:`${c.split(`
`).filter(a=>a.startsWith(`${e.params.service}::`)).map(a=>a.replace(`${e.params.service}::`,"")).join(`
`)}`,"is-searchable":"",query:e.params.codeSearch,"is-filter-mode":e.params.codeFilter,"is-reg-exp-mode":e.params.codeRegExp,onQueryChange:a=>e.update({codeSearch:a}),onFilterModeChange:a=>e.update({codeFilter:a}),onRegExpModeChange:a=>e.update({codeRegExp:a})},{"primary-actions":o(()=>[t(u,{appearance:"primary",onClick:C},{default:o(()=>[t(d(R),{size:d(k)},null,8,["size"]),i(`
                Refresh
              `)]),_:2},1032,["onClick"])]),_:2},1032,["code","query","is-filter-mode","is-reg-exp-mode","onQueryChange","onFilterModeChange","onRegExpModeChange"]))]),_:2},1032,["src"])])]),_:2},1024)]),_:1})}}});export{$ as default};
